<template>
	
	<el-row :gutter="5">
		<el-col :span="6">
			<xm-phase :sel-project="projectInfo"  @check-change="onPhaseRowClick"/>
		</el-col>
		<el-col :span="18">
			<xm-task-mng   :sel-project="projectInfo" :params="{ntype:'0'}" :parent-task="parentTask" queryScope="task" subOpType="mng"/>
		</el-col>
	</el-row>

</template>

<script>

import  XmPhase from '@/views/xm/core/xmTask/XmPhase.vue';//新增界面
 import  XmTaskMng from '@/views/xm/core/xmTask/XmTaskMng.vue';//新增界面
	import util from '@/components/mdp-ui/js/util';//全局公共库
	import { mapState } from 'pinia'
import { useUserStore } from '@/store/modules/user'
import { useXmStore } from '@/store/modules/xm' 

	export default { 
		computed: {
			...mapState(useUserStore,[
				'userInfo','roles'
			]),   
			...mapState(useXmStore,[ 'projectInfo']),   
		}, 
		watch: { 
		},
		data() {
			return {
				parentTask:null,
				selProject:null,
				/**end 自定义属性请在上面加 请加备注**/
			}
		},//end data
		methods: {
			 
			onPhaseRowClick(parentTask,checked){ 
				this.parentTask=checked?parentTask:null
			}
			/**end 自定义函数请在上面加**/
			
		},//end methods
		components: {  
			XmPhase,XmTaskMng
			 
		    //在下面添加其它组件
		},
		mounted() { 
			 	
		}
	}

</script>

<style scoped />